﻿using System;
using System.Threading;
using Microsoft.SPOT;

// VCC should be 5V
namespace SampleI2CRTC
{
    public class Program
    {
        public static void Main()
        {
            DS1307 rtc = new DS1307(400, 100);

            rtc.start();
            while (true)
            {
                rtc.Read();
                Debug.Print(rtc.hour + ":" + rtc.min + ":" + rtc.sec);
                Thread.Sleep(2000);
            }
        }
    }
}
